package com.lj.universalframework.adapter

import androidx.databinding.ViewDataBinding
import com.lj.universalframework.BR
import com.lj.universalframework.R
import com.lj.universalframework.base.Item


/**
 * <p>文件名：ItemAdapter
 * <p>创建者：LJ
 * <p>创建日期：2020\10\19 0019 9:13
 * <p>描述：
 */
class ItemAdapter : BaseAdapter<Item>() {

    override fun onBindViewHolder(holder: BaseViewHolder, position: Int) {
        var binding: ViewDataBinding = holder.dataBinding
        binding.setVariable(BR.item, data[position])
    }

    override fun getItemViewType(position: Int): Int {
        return R.layout.item
    }
}